#include <algorithm>
#include <string_view>
#include <iostream>

int count_dots(std::string_view str) {
  return std::count(std::begin(str), std::end(str), '.');
}

int main() {
  std::string_view str{"... ..."};//6
  
  std::cout << count_dots(str) << std::endl;
}
